<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/publico/template/templatePadrao.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui">

    <ui:define name="content">
        <h:form enctype="multipart/form-data">  
            <p:panel header="Comprovação de Periódico">
                <p:fileUpload
                    fileUploadListener="#{periodicoBean.uploadArquivoPeriodico}"  
                    mode="advanced"  
                    update="messages" label="Carregar Arquivo" 
                    auto="true"  
                    sizeLimit="10000000"   
                    allowTypes="/(\.|\/)(pdf)$/"/>  

                <p:commandButton
                    ajax="false"
                    value="Voltar"
                    action="#{periodicoBean.voltar()}"/>

                <p:growl id="messages" showDetail="true"/>  
            </p:panel>
        </h:form>  
    </ui:define>
</ui:composition>
